@PACKAGE_INIT@

set(REFLECTCPP_JSON @REFLECTCPP_JSON@)
set(REFLECTCPP_BSON @REFLECTCPP_BSON@)
set(REFLECTCPP_CAPNPROTO @REFLECTCPP_CAPNPROTO@)
set(REFLECTCPP_CBOR @REFLECTCPP_CBOR@)
set(REFLECTCPP_CSV @REFLECTCPP_CSV@)
set(REFLECTCPP_FLEXBUFFERS @REFLECTCPP_FLEXBUFFERS@)
set(REFLECTCPP_MSGPACK @REFLECTCPP_MSGPACK@)
set(REFLECTCPP_PARQUET @REFLECTCPP_PARQUET@)
set(REFLECTCPP_TOML @REFLECTCPP_TOML@)
set(REFLECTCPP_UBJSON @REFLECTCPP_UBJSON@)
set(REFLECTCPP_XML @REFLECTCPP_XML@)
set(REFLECTCPP_YAML @REFLECTCPP_YAML@)
set(REFLECTCPP_USE_BUNDLED_DEPENDENCIES @REFLECTCPP_USE_BUNDLED_DEPENDENCIES@)

if(REFLECTCPP_BSON OR REFLECTCPP_CAPNPROTO OR REFLECTCPP_CBOR OR REFLECTCPP_FLEXBUFFERS OR REFLECTCPP_MSGPACK OR REFLECTCPP_TOML OR REFLECTCPP_UBJSON OR REFLECTCPP_XML OR REFLECTCPP_YAML OR (REFLECTCPP_JSON AND NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES))
  include(CMakeFindDependencyMacro)
endif()

include(${CMAKE_CURRENT_LIST_DIR}/reflectcpp-exports.cmake)

if (NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES)
  find_dependency(ctre)
endif()

if ((REFLECTCPP_JSON OR REFLECTCPP_AVRO OR REFLECTCPP_CBOR OR REFLECTCPP_UBJSON) AND NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES)
  find_dependency(yyjson)  
endif()

if (REFLECTCPP_BSON)  
  find_dependency(bson-1.0)
endif ()

if (REFLECTCPP_CAPNPROTO)  
  find_dependency(CapnProto)
endif ()

if (REFLECTCPP_CBOR OR REFLECTCPP_UBJSON)  
  find_dependency(jsoncons)
endif ()

if (REFLECTCPP_CSV)
  find_dependency(Arrow)
endif()

if (REFLECTCPP_FLEXBUFFERS)
  find_dependency(flatbuffers)
endif ()

if (REFLECTCPP_MSGPACK)
  find_dependency(msgpack-c)
endif()

if (REFLECTCPP_PARQUET)
  find_dependency(Arrow)
  find_dependency(Parquet)
endif()

if (REFLECTCPP_TOML)
  find_dependency(tomlplusplus)
endif()

if (REFLECTCPP_XML)
  find_dependency(pugixml)
endif ()

if (REFLECTCPP_YAML)
  find_dependency(yaml-cpp)
endif ()

check_required_components(reflectcpp)
